@import "./../../app/automatic/theme.scss";

$height: 23px;

.box {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 0;
  flex: 1;
  :global(.ant-input) {
    height: $height;
  }
  :global(.ant-picker) {
    height: $height;
  }
  :global(.ant-pagination) {
    margin-top: 10px;
    text-align: right;
  }
  :global(.ant-table.ant-table-small .ant-table-thead .ant-table-column-sorters) {
    padding: 0 !important;
  }
  :global(.ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector) {
    border-color: #EEE !important;
  }
}

.table {
  flex: 1 1;
  height: 0;
  overflow: hidden;
}

// 无需要分页 无需滚动
.noFlexBox {
  display: block;
  height: auto;

  .table {
    height: auto;
  }
}

:global(.react-resizable) {
  position: relative;
  background-clip: padding-box;
}


:global(.react-resizable-handle) {
  position: absolute;
  width: 10px;
  height: 100%;
  bottom: 0;
  right: -5px;
  cursor: col-resize;
  z-index: 1;
}

:global(.ant-table-cell) {
  padding: 7px 8px !important;
  color: rgba($color: $black, $alpha: .65);
}

:global(.ant-table-thead > tr > th) {
  color: rgba($color: $black, $alpha: .85);
  font-weight: bold;
}

:global(.ant-table-tbody > tr > td) {
  max-width: 230px; // 15个中文字
}

.filterDropdown {
  list-style: none;
  padding: 5px 10px;
  li {
    margin-top: 5px;
    &:first-child {
      margin-top: 0;
    }
  }
}

.toolBar {
  display: flex;
  position: absolute;
  width: 100%;
  height: 60px;
  bottom: 0;
  left: 0;
  padding: 0 55px;
  background: #FFF;
  box-shadow: 0px 0px 6px 0px rgba(#000, 0.13);
  align-items: center;
}

.toolBarSeize {
  height: 60px;
}

.headth {
  &>span {
    color: rgba($color:$black, $alpha: .85);

    &.required {
      color: $error-color;
    }
  }
}

.thExtra {
  display: flex;
  white-space: nowrap;
  align-items: center;
  .marginRight {
    margin-right: 4px;
  }
}